using System;
using Hadlow.Jobvertizer.Repositories;
using Hadlow.Jobvertizer.Models;

namespace Hadlow.Jobvertizer.Controllers
{
	public class HomeController : BaseController
	{
        IJobRepository jobRepository;

        public HomeController(IJobRepository jobRepository)
        {
            this.jobRepository = jobRepository;
        }

		public void Index()
		{
            Job featuredJob = jobRepository.GetFeaturedJob();
            PropertyBag["job"] = featuredJob;
		}
	}
}
